// 按需引入elementui 组件
import Vue from 'vue';
import {
    Button,
    Form,
    FormItem,
    Loading,
    Message,
    MessageBox,
    Alert,
    Input,
    Pagination,
    Dialog,
    Autocomplete,
    Dropdown,
    DropdownMenu,
    DropdownItem,
    Menu,
    Submenu,
    MenuItem,
    MenuItemGroup,
    Tooltip,
    Tree,
    Popover,
    Row,
    Col,
    Select,
    Table,
    TableColumn,
    Checkbox,
    CheckboxButton,
    CheckboxGroup,
    DatePicker,
    Card,
    Cascader,
    Image,
    Option,
    OptionGroup,
    Radio,
    RadioGroup,
    Upload,
    Tabs,
    TabPane,
    Carousel,
    CarouselItem,
    RadioButton,
    Slider,
    Switch,
    TimePicker,
    TimeSelect,
    Drawer,
    Notification,
    PageHeader,
    InputNumber,
    Scrollbar,
    Progress,
} from 'element-ui';

Vue.use(Scrollbar);
Vue.use(InputNumber);
Vue.use(PageHeader);
Vue.use(Drawer);
Vue.use(Upload);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Option);
Vue.use(OptionGroup);
Vue.use(Image);
Vue.use(Cascader);
Vue.use(DatePicker);
Vue.use(Checkbox);
Vue.use(CheckboxButton);
Vue.use(CheckboxGroup);
Vue.use(Tree);
Vue.use(TableColumn);
Vue.use(Table);
Vue.use(Button);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Alert);
Vue.use(Input);
Vue.use(Pagination);
Vue.use(Dialog);
Vue.use(Autocomplete);
Vue.use(Dropdown);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Menu);
Vue.use(Submenu);
Vue.use(MenuItem);
Vue.use(MenuItemGroup);
Vue.use(Tooltip);
Vue.use(Tree);
Vue.use(Popover);
Vue.use(Row);
Vue.use(Col);
Vue.use(Select);
Vue.use(Card);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(Carousel);
Vue.use(CarouselItem);
Vue.use(RadioButton);
Vue.use(Slider);
Vue.use(Switch);
Vue.use(TimePicker);
Vue.use(TimeSelect);
Vue.use(Progress);

Vue.use(Loading.directive);

Vue.prototype.$loading = Loading.service;
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$message = Message;
Vue.prototype.$notify = Notification;
